#!/usr/bin/python3.4
# -*- coding=utf-8 -*-
import os

os.system('clear')
print('-' * 60)
print('|' + ' ' * 58 + '|')
print('|' + ' ' * 58 + '|')
print('|' + ' ' * 18 + 'QYTANG AUTO RACK SCRIPT' + ' ' * 17 + '|')
print('|' + ' ' * 58 + '|')
print('|' + ' ' * 58 + '|')
print('-' * 60)
print('|' + ' ' * 58 + '|')
print('|' + ' ' * 58 + '|')
print('|' + ' ' * 18 + 'Select [1] : Clear Rack' + ' ' * 17 + '|')
print('|' + ' ' * 58 + '|')
print('|' + ' ' * 18 + 'Select [2] : Preconfig Rack' + ' ' * 13 + '|')
print('|' + ' ' * 58 + '|')
print('|' + ' ' * 18 + 'Select [3] : Export Config' + ' ' * 14 + '|')
print('|' + ' ' * 58 + '|')
print('|' + ' ' * 18 + 'Select [4] : Exit' + ' ' * 23 + '|')
print('|' + ' ' * 58 + '|')
print('|' + ' ' * 58 + '|')
print('-' * 60)
select = input('Your Select?:')

if select == '1':
    os.system('clear')
	print('=' * 19 + 'Start Clear Rack' + '=' * 19)
	os.system('python /python/cgi-bin/cjdclearrack.py')
elif select == '2':
	os.system('clear')
	print('=' * 19 + 'Start Preconfig Rack' + '=' * 19)
	os.system('python /python/cgi-bin/cjdpreconfigrack.py')
elif select == '3':
	os.system('clear')
	print('=' * 19 + 'Start Export Rack' + '=' * 19)
	os.system('python /python/cgi-bin/copyallconfigfinal.py')
elif select == '4':
	os.system('clear')
	print('=' * 19 + 'Bye!!!' + '=' * 19)
	os._exit(1)
else:
	print('Your Select is invalid!!!')
	os._exit(1)


